package net.huashitong.scheduling.service;

import com.sirdc.modules.core.dao.BaseDao;
import com.sirdc.modules.sys.base.StringPKService;
import net.huashitong.scheduling.dao.YearbooksDao;
import net.huashitong.scheduling.entity.Yearbooks;
import net.huashitong.scheduling.filter.YearbooksFilter;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class YearbooksService extends StringPKService<Yearbooks> {
    @Autowired
    private YearbooksDao dao;
    @Override
    protected BaseDao<Yearbooks,String> getDao(){
        return dao;
    }
    public List<Yearbooks> queryYearbooksByDate(YearbooksFilter filter){
        return dao.queryYearbooksByDate(filter);
    }
}
